/**
 * @Author：ming
 * @Date：2023/9/26 9:29 PM
 * @Filename：Lc201
 */

/**
 * @author ming
 */
public class Lc201 {
    public int rangeBitwiseAnd(int left, int right) {
        int temp=  left;
        if(temp==2147483647){
            return temp;
        }
        for (int i = left+1; i <right ; i++) {

            temp &= i;
            if(temp==0){
                break;
            }
            if(i==2147483647){
                break;
            }
        }

        return temp;
    }
}
